﻿using wojilu.Apps.Qycms.Domain;
using wojilu.Web.Code;
using wojilu.Web.Mvc.Attr;

namespace wojilu.Web.Controller
{
    public class WapPublicController : BaseTempController
    {
        public WapPublicController()
        {

        }

        public static VerifyCode captcha
        {
            get { return new wojilu.Web.Code.VerifyCode(); }
        }

        [NonVisit]
        public virtual void Top()
        {
            view(DefaultWapTemp + "Public/Top");
            set("menu", loadHtml(Menu));

            SetPublic();
        }

        [NonVisit]
        public virtual void Bottom()
        {
            view(DefaultWapTemp + "Public/Bottom");


            SetPublic();
        }

        [NonVisit]
        public virtual void Left()
        {
            view(DefaultWapTemp + "Public/Left");


            SetPublic();
        }

        [NonVisit]
        public virtual void Menu()
        {
            view(DefaultWapTemp + "Public/Menu");

            var list = TypeList.find(" ismenu =:i").set("i", 1).list();
            bind("menulist", list);

            SetPublic();
        }

    }
}
